﻿@{
    ViewBag.Title = "加工明细查询";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<MaterialProcessItem>(s =>
 {
     s.Action("List");
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.BindDateTime(e => e.Date).AsSearch();
         c.Bind(e => e.Code).Width(70);
         c.Bind(e => e.Name).Width(50).AsQuery().AsSearch();
         c.Bind(e => e.RawMaterialName).Width(60).AsSearch();
         c.Bind(e => e.ProcessRate).Width(40).Align(GridAlign.Right);
         c.BindEnum(e => e.Category, "MaterialCategory").Width(60).AsSearch();
         c.Bind(e => e.ProcessWeight).Width(60).Align(GridAlign.Right);
         c.Bind(e => e.PickWeight).Width(60).Align(GridAlign.Right);
         c.Bind(e => e.StorageWeight).Width(70).Align(GridAlign.Right);
         c.BindEnum(e => e.State, "ProcessState").Width(70).AsSearch();
     });
 }))
